import os
with open(r"exercise\poem.txt",'r',encoding = "utf-8") as file2:
    line = file2.readlines()
    print(line)

import os 
path = r"C:\Users\LU\Desktop\lujiuyu"
if not os.path.exists(path):
    os.mkdir(path)
    print("已生成该路径")
else:
    print("该路径已存在")

import os
print(os.getcwd())
print(os.path.abspath(r"exercise\poem.txt"))
print(os.path.join(r"C:\Users\LU\Desktop","exercise"))